package com.captcha.mybatisdemo.controller;

import com.captcha.mybatisdemo.model.UserInfo;
import com.captcha.mybatisdemo.service.Service1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/c")
public class Controller1 {
    @Autowired
    private Service1 service1;

    @RequestMapping("/g")
    public List<UserInfo> getUserInfo() {
        return service1.getUserInfo();
    }
}
